<?php
$conn=mysql_connect("localhost", "sopta", "sopta01!");
if (!$conn) 
{
    die('Could not connect: ' . mysql_error());
}
else
{
	mysql_query("SET NAMES 'gbk'");
	mysql_select_db("sopta"); 
}
?> 